package md.frolov.bible.views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.LineStyleEvent;
import org.eclipse.swt.custom.LineStyleListener;
import org.eclipse.swt.custom.StyleRange;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.custom.StyledTextContent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.ui.part.ViewPart;

public class HistoryView extends ViewPart {
	public static final String PLUGIN_ID = "md.frolov.bible.views.History";

	public HistoryView() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void createPartControl(Composite parent) {
		FillLayout layout = new FillLayout();
		StyledText st = new StyledText(parent, SWT.BORDER);
		st.setLayout(layout);
		st.setText("zi <b>text</b> <a>yo</a>");
		st.addLineStyleListener(new LineStyleListener(){

			@Override
			public void lineGetStyle(LineStyleEvent event) {
				StyleRange sr;
			}
			
		});
	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub

	}

}
